package com.east.sng.service;

import com.east.sng.entity.param.MenuParam;
import com.east.sng.entity.result.MenuFind;
import com.east.sng.entity.result.MenuInfo;
import com.east.sng.entity.result.MenuTree;

import java.util.List;
import java.util.Map;

/**
 * @author east
 * @date: 2021/1/5
 * @Description:
 **/
public interface MenuService {

	List<MenuInfo> findMenus(Map<String, Object> params);
	List<Map<String,Object>> findParentMenus();
	MenuFind findMenu(Integer menuId);

	void addMenu(MenuParam menu);
	void editMenu(MenuParam menu);

	boolean removeMenu(Integer menuId);
	boolean recoverMenu(Integer menuId);
	boolean batchRemoveMenus(List<Integer> menuIds);
	boolean batchRecoverMenus(List<Integer> menuIds);

	List<MenuTree> findMenuByPid(Integer pid);
	List<Integer> findAssignMenuIdsByRoleId(Integer roleId);
	List<MenuTree> findMenuByRoleId(Integer roleId);

}
